﻿using UnityEngine;
using System.Collections;

public class GameTime : MonoBehaviour
{
    static float m_fPrevTimeSpeed = 0.0f;

    public static void TimeSpeed_Fast()
    {
        Time.timeScale += 0.1f;
    }

    public static void TimeSpeed_Slow()
    {
        Time.timeScale -= 0.1f;
    }

    public static void TimeSpeed_Pause()
    {
        m_fPrevTimeSpeed = Time.timeScale;
        Time.timeScale = 0.0f;
    }

    public static void TimeSpeed_Play()
    {
        Time.timeScale = 1;
    }
}

